<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Listado De Requisiciones</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">

				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>

				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">

									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 0px;'>
										<ice:panelGrid width="676">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px; background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'
												dir="RTL">


												<ice:outputText value="REQUISICION RECIBIDA"
													styleClass="tituloform" />
											</ice:panelGrid>
											<ice:panelGrid columns="6" style="width: 600px; "
												cellpadding="0" cellspacing="0" border="0" dir="LTR">

												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Tipo&#160;: "
													style="color:#004080; font-size: 12px; font-weight: bold; text-align: left; " />

												<ice:selectOneMenu value="#{Requi_DocR_MB.btipo}"
													style="width: 157px" tabindex="1"
													valueChangeListener="#{Requi_DocR_MB.action_validadoc}"
													binding="#{Requi_DocR_MB.txttipo}"
													disabled="#{Requi_DocR_MB.sweditando}">
													<f:selectItems value="#{Requi_DocR_MB.sel_document}" />
												</ice:selectOneMenu>

												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;Numero&#160;: "
													style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />

												<ice:inputText value="#{Requi_DocR_MB.bnumero}"
													partialSubmit="true" binding="#{Requi_DocR_MB.txtnumero}"
													id="Numero" title="Numero de Documento"
													style="width: 100px" readonly="true">
													<f:validator validatorId="validandoNumero" />
												</ice:inputText>

												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;Fecha&#160;: "
													style="color:#004080; font-size: 12px; text-align: right;" />

												<ice:inputText value="#{Requi_DocR_MB.bfecha}"
													binding="#{Requi_Docb_MB.txtfecha}" partialSubmit="true"
													style="width: 100px" readonly="true">
													<f:convertDateTime pattern="dd/MM/yyyy" />
												</ice:inputText>

												<ice:outputText value="&#160;Bod&#160;Origen&#160;: "
													style="color:#004080; font-size: 12px;  text-align: left;" />

												<ice:selectOneMenu value="#{Requi_DocR_MB.bbodegas}"
													style="width: 157px" tabindex="2"
													binding="#{Requi_DocR_MB.txtbodegas}"
													disabled="#{Requi_DocR_MB.sweditando}">
													<f:selectItems value="#{Requi_DocR_MB.sel_bodega}" />
												</ice:selectOneMenu>

												<ice:outputText value="Bod&#160;Destino&#160;: "
													style="color:#004080; font-size: 12px;   text-align: left;" />

												<ice:inputText value="#{Requi_DocR_MB.bbodegae}"
													binding="#{Requi_Docb_MB.txtbodegae}" maxlength="8"
													partialSubmit="true" readonly="true" style="width: 100px">
												</ice:inputText>

												<ice:outputText value="&#160;&#160;&#160;Estado&#160;: "
													style="color:#004080; font-size: 12px;  text-align: left;" />


												<ice:selectOneMenu value="#{Requi_DocR_MB.selecestado}"
													tabindex="3" binding="#{Requi_DocR_MB.seleconeestado}"
													disabled="true" style="width: 105px">
													<f:selectItem itemValue="2" itemLabel="EN REGISTRO" />
													<f:selectItem itemValue="3" itemLabel="ENVIADA" />
													<f:selectItem itemValue="5" itemLabel="ANULADA" />
												</ice:selectOneMenu>


											</ice:panelGrid>

											<ice:panelGrid columns="2"
												style="width: 600px; margin-top: 0px; padding-bottom: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px">

												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;Detalle&#160;: "
													style="color:#004080; font-size: 12px;  text-align: left;" />

												<ice:inputTextarea value="#{Requi_DocR_MB.bdetalle}"
													readonly="true"
													onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
													binding="#{Requi_DocR_MB.txtdetalle}" partialSubmit="true"
													style="width: 497px; height: 30px" tabindex="4">
												</ice:inputTextarea>

											</ice:panelGrid>






											<ice:panelGrid columns="1" border="0"
												style="width: 600px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-right-color: #B3BFCE; border-right-style: solid; border-bottom-color: #B3BFCE; border-top-color: #B3BFCE; border-bottom-style: solid; border-left-style: solid; border-top-style: solid; border-left-color: #B3BFCE">
												<ice:panelGrid columns="2">
													<ice:dataTable var="itemx"
														value="#{Requi_DocR_MB.requipro}" id="tableUnimedw"
														rows="3" width="530" rendered="true" border="1">
														<ice:column style="width: 40px">
															<ice:rowSelector id="selected" value="#{itemx.selected}"
																multiple="false"
																selectionListener="#{Requi_DocR_MB.rowSelectionListenerPro}"
																selectedClass="QsiceRowSelSelectedMouseOver"
																mouseOverClass="QsiceRowSelSelected" />
															<f:facet name="header">
																<ice:outputText value="Codigo" styleClass="headertabla" />
															</f:facet>
															<ice:outputText
																value="#{itemx.requipro.producto.procodigo}"
																styleClass="qs_tex_table" />
														</ice:column>
														<ice:column style="width: 140px">
															<f:facet name="header">
																<ice:outputText value="Nombre" styleClass="headertabla" />
															</f:facet>
															<ice:outputText
																value="#{itemx.requipro.producto.pronombre}"
																styleClass="qs_tex_table" />
														</ice:column>
														<ice:column style="width: 30px">
															<f:facet name="header">
																<ice:outputText value="Unidad" styleClass="headertabla" />
															</f:facet>
															<ice:outputText
																value="#{itemx.requipro.unimed.umdcodigo}"
																styleClass="qs_tex_table" />
														</ice:column>


														<ice:column style="width:60px">
															<f:facet name="header">
																<ice:outputText value="Cant. Req"
																	styleClass="headertabla" />
															</f:facet>
															<ice:outputText style="text-align: right;" value="#{itemx.requipro.rqpcantReq}"
																styleClass="qs_tex_table" />
														</ice:column>
														<ice:column style="width:60px">
															<f:facet name="header">
																<ice:outputText value="Cant. Ent"
																	styleClass="headertabla" />
															</f:facet>
															<ice:outputText  style="text-align: right;"  value="#{itemx.requipro.rqpcantEnt}"
																styleClass="qs_tex_table" />
														</ice:column>

														<ice:column style="width:85px">
															<f:facet name="header">
																<ice:outputText value="Estado" styleClass="headertabla" />
															</f:facet>
															<ice:outputText value="#{itemx.requipro.label.lbnombre}"
																styleClass="qs_tex_table" />
														</ice:column>



													</ice:dataTable>

													<ice:commandButton value="DAR DE BAJA"
														title="Rechazar Producto" styleClass="boton"
														actionListener="#{Requi_DocR_MB.action_confirmacionEliminarPro}" />

												</ice:panelGrid>



												<ice:panelGrid columns="4"
													style="width: 524px; height: 39px">
													<ice:dataPaginator id="paginator" for="tableUnimedw"
														paginator="true" paginatorMaxPages="4"
														style="height: 17px">
														<f:facet name="first">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-first.gif" />
														</f:facet>
														<f:facet name="last">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-last.gif" />
														</f:facet>
														<f:facet name="previous">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-previous.gif" />
														</f:facet>
														<f:facet name="next">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-next.gif" />
														</f:facet>
														<f:facet name="fastforward">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-ff.gif" />
														</f:facet>
														<f:facet name="fastrewind">
															<ice:graphicImage style="border:none"
																url="./css/images/arrow-fr.gif" />
														</f:facet>
													</ice:dataPaginator>

													<ice:panelGrid columns="4" border="0" cellpadding="2"
														cellspacing="2">

														<ice:commandButton styleClass="boton" value="SALIR"
															action="#{Requi_DocR_MB.action_Cancelar}" />

													</ice:panelGrid>
												</ice:panelGrid>
											</ice:panelGrid>



											<ice:panelGrid columns="5" cellpadding="0" border="0"
												cellspacing="0" style="height: 37px">
												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;FECHA DE ENVIO&#160;:&#160; "
													style="color: #004080; font-size: 10px;" />


												<ice:inputText value="#{Requi_DocR_MB.bfechaenv}"
													binding="#{Requi_DocR_MB.txtnombre}" maxlength="50"
													partialSubmit="true"
													style="width: 110px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; padding-right: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin-right: 0px; margin-left: 0px; border-left-width: 0px; padding-top: 0px; padding-left: 0px; color: #004080; font-size: 10px;"
													readonly="true">
													<f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss"
														timeStyle="long" />
												</ice:inputText>

												<ice:panelGrid style="width: 377px">
													<ice:messages id="msg"
														style="width: 10px; height: 20px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
												</ice:panelGrid>

											</ice:panelGrid>



											<ice:panelPopup id="popupEliminapro" draggable="false"
												modal="true" visible="#{Requi_DocR_MB.modalRenderedpro}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 400px; height: 100px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea rechazar esta Requisicion:" />
														<ice:outputText styleClass="qs_label"
															value="#{Requi_DocR_MB.nombreEliminarpro}?" />
														<br />
														<ice:outputText styleClass="qs_label" value=" " />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																actionListener="#{Requi_DocR_MB.action_EliminarTablaPro}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Requi_DocR_MB.toggleModalpro}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>